/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pb.diplom.first.gui;

import com.pb.diplom.first.gui.producerCategoryCommodity.CategoryTabPanel;
import com.pb.diplom.first.gui.producerCategoryCommodity.CommodityTabPanel;
import com.pb.diplom.first.gui.producerCategoryCommodity.ProducerTabPanel;
import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.JTabbedPane;

/**
 *
 * @author Slava
 */
public class MainLayout extends JTabbedPane {

    private final Dimension size = new Dimension(500, 400);

    private final CategoryTabPanel categoryPanel = new CategoryTabPanel();
    private final CommodityTabPanel commodityPanel = new CommodityTabPanel();
    private final ProducerTabPanel producerPanel = new ProducerTabPanel();

    public MainLayout() {
        createUi();
    }

    private void createUi() {
        this.setPreferredSize(size);

        this.addTab("Categories", categoryPanel);
        this.addTab("Producers", producerPanel);
        this.addTab("Commodities", commodityPanel);
    }

}
